export default class Dep {
    add (key, cb) {
        !this[key] ? this[key] = [cb] : this[key].push(cb);
    }
    notify (key) {
        this[key].forEach(cb => cb());
    }
}